package com.jic.market.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.jic.market.entity.PatchGrouponCustomerRobotModel;
import java.util.List;
import java.util.Map;

/**
 *  Mapper 接口
 *
 * @author xuyongliang
 * @since 2020-03-26
 */
@Mapper
public interface PatchGrouponCustomerRobotMapper{

    /**
     *   新增
     * @param model
     */
    Integer patchGrouponCustomerRobotAdd(PatchGrouponCustomerRobotModel model);


    /**
     *   编辑
     * @param record
     * @param example
     */
    Integer patchGrouponCustomerRobotEdit(@Param("record") PatchGrouponCustomerRobotModel record, @Param("example") PatchGrouponCustomerRobotModel example);

    /**
     *   删除
     * @param map
     */
    Integer patchGrouponCustomerRobotDelete(Map map);

    /**
     *   查询详情
     * @param map
     */
    PatchGrouponCustomerRobotModel patchGrouponCustomerRobotQuery(Map map);

    /**
     *   分页查询
     * @param startIndex
     * @param limit
     * @param example
     */
    List<PatchGrouponCustomerRobotModel> patchGrouponCustomerRobotQueryPageList(
            @Param("startIndex") int startIndex,
            @Param("limit") int limit,
            @Param("example") PatchGrouponCustomerRobotModel example);

    /**
     *   分页查询数量
     * @param example
     */
    Integer patchGrouponCustomerRobotQueryPageCount(
            @Param("example") PatchGrouponCustomerRobotModel example);

    /**
    *   修改单据状态
    * @param map 可修改的参数列表 status 查询参数 id
    */
    Integer patchGrouponCustomerRobotChangeStatus(Map map);

    /**
     *   修改审批状态
     * @param map 可修改的参数列表 updator，updateName，updateTime  查询参数 id
     */
    Integer patchGrouponCustomerRobotChangeApproveStatus(Map map);
}
